package cn.assumejson.springframework.aop;

import cn.assumejson.springframework.aop.aspectj.TrueMethodMatcher;

import java.lang.reflect.Method;

/**
 * 方法匹配
 *
 * @author Mr. Li
 * @version 1.0
 * @since 1.0 2021/12/2 13:21
 */
public interface MethodMatcher {
    /**
     * Perform static checking whether the given method matches. If this
     *
     * @return whether or not this method matches statically
     */
    boolean matches(Method method, Class<?> targetClass);

    MethodMatcher TRUE = TrueMethodMatcher.INSTANCE;
}
